package remove.assignments.to.parameters;

/**
 * Created by Administrator on 2018/1/25.
 */
public class Test {


    int discount(int inputVal, int quantity, int yearToDate) {
        if (inputVal > 50) {
            inputVal -= 2;
        }
        return inputVal;
    }

    //移出对参数的赋值
    int discountRF(int inputVal, int quantity, int yearToDate) {
        int result = inputVal;
        if (inputVal > 50) {
            result -= 2;
        }
        return result;
    }

}
